//
// Created by blank on 2017/5/8.
// Copyright (c) 2017 CYN. All rights reserved.
//

#import "MVVMViewModel.h"
#import "KVOController.h"
#import "MVVMPaper.h"

@interface MVVMViewModel ()

@property(nonatomic, retain) MVVMPaper *mvvmPaper;

@property(nonatomic, copy) NSString *contentString;

@end

@implementation MVVMViewModel {

}

- (instancetype)init {
    self = [super init];
    if (self) {

    }

    return self;
}

- (void)setMvvmPaper:(MVVMPaper *)mvvmPaper {
    _mvvmPaper = mvvmPaper;

    self.contentString = mvvmPaper.content;
}


- (void)onPrintClick {
    [_mvvmPaper setContent:@"line 1"];

    [self setMvvmPaper:_mvvmPaper];
}


@end